/*
 *    Copyright (c) 2018-2025, javaeer All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the smartcloudx.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: javaeer (javaeer@aliyun.com)
 */
package com.smartcloudx.ftp.server.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * <p>
 * </p>
 *
 * @Author javaeer(javaeer @ aliyun.com)
 * @Date 2018/12/15 17:19
 * @Version 1.0
 */
@Data
@Component
@ConfigurationProperties(prefix = "ftp")
public class FtpConfiguration {

    private String ftpPath;

    private Integer ftpPort;

    private String ftpUsr;

    private String ftpPwd;

    private Integer idleTimeout;

    private String passivePorts;


    //@Bean
    //public ServletListenerRegistrationBean listenerRegistrationBean() {
    //    ServletListenerRegistrationBean listenerRegistrationBean = new ServletListenerRegistrationBean();
    //    listenerRegistrationBean.setListener(new FtpServerListener());
    //    return listenerRegistrationBean;
    //}

}
